import request from '@/utils/axios'
var qs = require('qs');

// 获取活动管理列表
export function getserviceList(params) {
  return request({
    url: '/Gameserver/list',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 添加开服信息
export function addservice(params) {
  return request({
    url: '/Gameserver/insert',
    method: 'get',
    params
  });
}
// 编辑列表数据获取
export function editServicelist(params) {
  return request({
    url: '/Gameserver/edit',
    method: 'get',
    params
  });
}
// 编辑开服信息
export function editservice(params) {
  return request({
    url: '/Gameserver/editPost',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 导入开服表
export function exportExcel(params) {
  return request({
    url: '/Gameserver/import',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 删除开服
export function delGameserver(params) {
  return request({
    url: '/Gameserver/delGameserver',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 批量开服
export function delsGameserver(params) {
  return request({
    url: '/Gameserver/delsGameserver',
    method: 'post',
    data: qs.stringify(params)
  });
}
